package org.accp.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

public class Zhiliaoyi implements Serializable {
    private Integer id;
    private String docname;
    private Integer disoddid;
    private String rname;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date zdate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date zdateover;
    private Integer aid;

    public void setId(int id) {
        this.id = id;
    }

    public void setDisoddid(String disoddid) {
        this.disoddid = disoddid;
    }

    public void setZdate(String zdate) {
        this.zdate = zdate;
    }

    public void setZdateover(String zdateover) {
        this.zdateover = zdateover;
    }

    public void setAid(String aid) {
        this.aid = aid;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDocname() {
        return docname;
    }

    public void setDocname(String docname) {
        this.docname = docname;
    }

    public Integer getDisoddid() {
        return disoddid;
    }

    public void setDisoddid(Integer disoddid) {
        this.disoddid = disoddid;
    }

    public String getRname() {
        return rname;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public Date getZdate() {
        return zdate;
    }

    public void setZdate(Date zdate) {
        this.zdate = zdate;
    }

    public Date getZdateover() {
        return zdateover;
    }

    public void setZdateover(Date zdateover) {
        this.zdateover = zdateover;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Zhiliaoyi zhiliaoyi = (Zhiliaoyi) o;

        if (id != null ? !id.equals(zhiliaoyi.id) : zhiliaoyi.id != null) return false;
        if (docname != null ? !docname.equals(zhiliaoyi.docname) : zhiliaoyi.docname != null) return false;
        if (disoddid != null ? !disoddid.equals(zhiliaoyi.disoddid) : zhiliaoyi.disoddid != null) return false;
        if (rname != null ? !rname.equals(zhiliaoyi.rname) : zhiliaoyi.rname != null) return false;
        if (zdate != null ? !zdate.equals(zhiliaoyi.zdate) : zhiliaoyi.zdate != null) return false;
        if (zdateover != null ? !zdateover.equals(zhiliaoyi.zdateover) : zhiliaoyi.zdateover != null) return false;
        if (aid != null ? !aid.equals(zhiliaoyi.aid) : zhiliaoyi.aid != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (docname != null ? docname.hashCode() : 0);
        result = 31 * result + (disoddid != null ? disoddid.hashCode() : 0);
        result = 31 * result + (rname != null ? rname.hashCode() : 0);
        result = 31 * result + (zdate != null ? zdate.hashCode() : 0);
        result = 31 * result + (zdateover != null ? zdateover.hashCode() : 0);
        result = 31 * result + (aid != null ? aid.hashCode() : 0);
        return result;
    }
}